package com.wlyuan.open.scanner.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 对账单中间表
 * </p>
 *
 * @author yuanjie
 * @since 2022-11-28
 */
@Data
@TableName("Balance_OrderLock")
@ApiModel(value = "BalanceOrderlockDO对象", description = "对账单中间表")
public class BalanceOrderLockDO implements Serializable {


    private static final long serialVersionUID = -4368906563549794841L;
    @ApiModelProperty("主键id")
    @TableId(value = "lock_id", type = IdType.AUTO)
    private Integer lockId;

    @ApiModelProperty("批次  主要区分哪一批次添加的订单")
    private String lockBatchno;

    @ApiModelProperty("订单id")
    private Long lockOrderid;

    @ApiModelProperty("被锁定订单的关联订单id，例如如果是应收的订单，则此处存的是他的上游运输单id，如果是应付的订单，此处存得是他的下游客户订单id")
    private Long lockReferenceorderid;

    @ApiModelProperty("合同编号")
    private String lockPactcode;

    @ApiModelProperty("账单操作类型（应收，应付）")
    private Long lockBilltype;

    @ApiModelProperty("订单的类型（拼车单，客户单，运输单）")
    private Long lockSrcclass;

    @ApiModelProperty("被锁订单的客户id")
    private Long lockCustomerid;

    @ApiModelProperty("被锁订单的承运商公司id")
    private Long lockSuppliercompanyid;

    @ApiModelProperty("创建人id")
    private Long lockUserid;

    @ApiModelProperty("创建人所在公司id")
    private Long lockCreatecompanyid;

    @ApiModelProperty("创建时间")
    private LocalDateTime lockCreatetime;

    @ApiModelProperty("是否生效（保存对账单，则生效）")
    private Integer lockInvalid;


}
